#ifndef WINDOW_H
#define WINDOW_H

#include <QMainWindow>
#include <QWindow>
#include <QTimer>
#include <QString>
#include <QPushButton>
#include "cubicItem.h"

class window:public QMainWindow
{
    Q_OBJECT
public:
    window();
    ~window();
    void keyPressEvent(QKeyEvent *);
private:
    cubicItem *cubic_matrix[4][4];
    QTimer *game_timer;
    int mins,secs;
    QPushButton *left_button,*right_button,*up_button,*down_button;
    QPushButton *quit_button,*retry_button;
    QLabel *time_label;
    void update_data();
private slots:
    void slot_time_update();
    void slot_retry();
    void slot_quit();
    void slot_grab();
};

#endif // WINDOW_H
